vr2-4-15.wrl


[ VRML source code ]

#VRML V2.0 utf8
#vr2-4-15.wrl
Group {
  children [
    WorldInfo {
      title "Fountain pen"
      info  [ "Copyright 1997", "by S. Nakayama" ]
    },
    #lower body
    Transform {
      scale 1 10 1
      children Shape {
        appearance DEF Green Appearance {
          material Material {
            diffuseColor 0 1 0
          }
        }
        geometry Sphere { radius 5 }
      }
    },
    #upper body
    Transform {
      scale 1.2 5 1.2
      translation 0 25 0
      children Shape {
        appearance USE Green
        geometry Sphere { radius 5 }
      }
    },
    #hook
    Transform {
      translation 0 25 8
      children Shape {
        appearance DEF Yellow Appearance {
          material Material {
            diffuseColor 1 1 0
          }
        }
        geometry Cylinder {
          radius 2
          height 20
        }
      }
    },
    Transform {
      translation 0 35 7
      children Shape {
        appearance USE Yellow
        geometry Sphere { radius 3.5 }
      }
    },
    Transform {
      translation 0 17 8
      scale 1 1 0.5
      children Shape {
        appearance USE Yellow
        geometry Cone {
          bottomRadius 4
          height 4
        }
      }
    },
    Transform {
      translation 0 12 8
      rotation 1 0 0 3.141592
      scale 1 1 0.5
      children Shape {
        appearance USE Yellow
        geometry Cone {
          bottomRadius 4
          height 6
        }
      }
    },
    #ring
    Transform {
      translation 0 15 0
      children Shape {
        appearance USE Yellow
        geometry Cylinder {
          radius 5.6
          height 2
        }
      }
    },
    Transform {
      translation 0 -30 0
      children Shape {
        appearance USE Yellow
        geometry Cylinder {
          radius 4.1
          height 1
        }
      }
    },
    Transform {
      translation 0 40 0
      children Shape {
        appearance USE Yellow
        geometry Cylinder {
          radius 4.9
          height 1
        }
      }
    }
  ]
}